package com.haiyu.manager.dao;

import com.haiyu.manager.dto.BoardDTO;
import com.haiyu.manager.dto.BoardSearchDTO;
import com.haiyu.manager.pojo.Board;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mapper.MyMapper;

import java.util.List;
@Repository
public interface BoardMapper extends MyMapper<Board> {
    List<BoardDTO> getBoardList(BoardSearchDTO boardSearchDTO);

    int updateBoardStatus(@Param("boardId") Integer boardId,@Param("boardStatus") Integer boardStatus);

    int updateBoard(Board board);


}
